package risk.control.application.utils;

import android.animation.ObjectAnimator;
import android.view.View;

public class WindowSwingUtils {

    public static void shake(View view) {
        ObjectAnimator animator = ObjectAnimator.ofFloat(view, "translationX", 0, 25, -25, 25, -25, 15, -15, 6, -6, 0);
        animator.setDuration(500);
        animator.start();
    }
}
